import { TokenItem, TokenPath, TokenMeta } from '@/components/Theming/TokenList'; import { ColorBlock } from '@/components/Theming/TokenBlocks'; ## Theming FaceLivenessDetector supports [Material3 theming](https://developer.android.com/jetpack/compose/designsystems/material3#material-theming), allowing you to theme FaceLivenessDetector to match the look and feel of your app. To theme FaceLivenessDetector according to your app's theme, wrap FaceLivenessDetector in your app's theme: ```kotlin @Composable fun MyTheme( content: @Composable () -> Unit ) { MaterialTheme( // Override colorScheme with custom colors colorScheme = LivenessColorScheme.default(), // Override shapes with custom shapes shapes = MaterialTheme.shapes, // Override typography with custom typography typography = MaterialTheme.typography, content = content ) } MyTheme { FaceLivenessDetector(...) } ``` Amplify UI Face Liveness provides a Material3 color scheme for light mode and dark mode. **Light mode:** **Dark mode:** To theme FaceLivenessDetector using the Amplify UI Face Liveness color scheme, wrap FaceLivenessDetector in a MaterialTheme and pass `LivenessColorScheme` for the theme's color scheme: ```kotlin MaterialTheme( colorScheme = LivenessColorScheme.default() ) { FaceLivenessDetector(...) } ``` If no theme is provided, FaceLivenessDetector uses the default MaterialTheme values.